package dynamicProgramming;

import java.util.ArrayList;
import java.util.List;



public class Node {
	Node left;
	Node right ;
	Node parent ;
	double probability;
	int key;
	String value;
	List<Integer> leftNodes;
	List<Integer> rightNodes;
	
	

	//consturctor	
	Node(String value, int key, double probability, Node parent, List<Integer> leftNodes, List<Integer> rightNodes){
		this.left = null;
		this.right = null;
		this.parent = parent;
		this.probability = probability;
		this.key = key;
		this.value=value;
		this.leftNodes = new ArrayList<Integer>(leftNodes);
		this.rightNodes = new ArrayList<Integer>(rightNodes);
		
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
